<%@ taglib uri="/struts-tags" prefix="s" %> 
<%@ taglib uri="http://www.wooshow.com/core" prefix="w" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %> 
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Users - Admin Template</title>
<link rel="stylesheet" type="text/css" href="css/theme.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script  type="text/javascript" src="http://localhost/jquery/js/jquery-1.2.6.min.js"></script>

<script>
   var StyleFile = "theme" + document.cookie.charAt(6) + ".css";
   document.writeln('<link rel="stylesheet" type="text/css" href="css/' + StyleFile + '">');
</script>

<script>
$(document).ready(function(){
//alert(1);
$("table.clist tr:nth-child(even)").addClass("altrow");
});
</script>
<style type="text/css">
<!--
.clist tr:hover{
background-color:#ffc;
}
.altrow {
background-color:#cef;
}
tr a{
color:#000;
text-decoration:none;
}
td{
padding-right:6px;
border:1px #ccc solid;
}
-->
</style>

<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie-sucks.css" />
<![endif]-->
</head>

<body>
	<div id="container">
    	<div id="header">
        	<h2>My eCommerce Admin wwoowoarea</h2>
    <div id="topmenu">
            	<ul>
                	<li><a href="index.html">Dashboard</a></li>
                    <li><a href="#">Orders</a></li>
                	<li class="current"><a href="#">Users</a></li>
                    <li><a href="#">Manage</a></li>
                    <li><a href="#">CMS</a></li>
                    <li><a href="#">Statistics</a></li>
                    <li><a href="#">Settings</a></li>
              </ul>
          </div>
      </div>
        <div id="top-panel">
            <div id="panel">
                <ul>
					<li><a href="#adduser" class="useradd">Add user</a></li>
                    <li><a href="#" class="group">User groups</a></li>
            		<li><a href="#" class="search">Find user</a></li>
                    <li><a href="#" class="online">Users online</a></li>
                </ul>
            </div>
      </div>
        <div id="wrapper">
            <div id="content">
                <div id="box">
                	<h3>Users</h3>
                	<table width="100%" class="clist">
						<thead>
							<tr>
                            	<th width="40px"><spring:message code="framework.sequence"/></a></th>
                            	<th width="170px"><a href="#"><spring:message code="sqls.columns.statement"/></a></th>
                                <th width="270px"><a href="#"><spring:message code="sqls.columns.description"/></a></th>
                                <th width="70px"><a href="#"><spring:message code="sqls.columns.createtime" /></a></th>
                                <th width="70px"><a href="#"><spring:message code="sqls.columns.lastmodifiedtime" /></a></th>
                                <th width="90px"><a href="#"><spring:message code="sqls.columns.actions" /></a></th>
                                <th width=""><a href="#"></a></th>
                            </tr>
						</thead>
						<tbody>
							<c:forEach items="${sqls}" var="sql">
								<tr>
									<td></td>
									<td><w:shorten str2Sub="${sql.sqlStr}" /></td>
									<td><w:shorten str2Sub="${sql.comments}" /></td>
									<td><w:shorten str2Sub="${sql.createtime}" /></td>
									<td><s:property value="lastmodifiedtime" /><w:shorten str2Sub="${sql.lastmodifiedtime}" /></td>
									<td>
										<a href="#" title="<spring:message code='sqls.tips.execute' />"><img src="img/icons/cog_go.png" /></a>&nbsp;
										<a href="#" title="<spring:message code='sqls.tips.update' />"><img src="img/icons/database_edit.png" /></a>&nbsp;
										<a href="#" title="<spring:message code='sqls.tips.delete' />"><img src="img/icons/database_delete.png" /></a>
									</td>
									<td></td>
								</tr>
							</c:forEach>
						</tbody>
					</table>
                    <div id="pager">
                    	Page <a href="#"><img src="img/icons/arrow_left.gif" width="16" height="16" /></a> 
                    	<input size="1" value="1" type="text" name="page" id="page" /> 
                    	<a href="#"><img src="img/icons/arrow_right.gif" width="16" height="16" /></a>of 42
                    pages | View <select name="view">
                    				<option>10</option>
                                    <option>20</option>
                                    <option>50</option>
                                    <option>100</option>
                    			</select> 
                    per page | Total <strong>420</strong> records found
                    </div>
                </div>
                <br />
                <div id="box">
                	<h3 id="adduser">Add user</h3>
                    <form id="form" action="sqlsAction!save.action" method="post">
                      <fieldset id="personal">
                        <legend>PERSONAL INFORMATION</legend>
                        <label for="statement"><spring:message code="sql.labels.statement" /> : </label> 
                        <input name="statement" id="lastname" type="text" tabindex="1" />
                        <br />
                        <label for="description"><spring:message code="sql.labels.description" /> : </label>
                        <input name="firstname" id="firstname" type="text" 
                        tabindex="2" />
                        <br />
                      </fieldset>
                      
                      <div align="center">
                      <input id="button1" type="submit" value="<spring:message code='sql.actions.save' />" /> 
                      <input id="button2" type="reset" />
                      </div>
                    </form>

                </div>
            </div>
			<!--
            <div id="sidebar">
  				<ul>
                	<li><h3><a href="#" class="house">Dashboard</a></h3>
                        <ul>
                        	<li><a href="#" class="report">Sales Report</a></li>
                    		<li><a href="#" class="report_seo">SEO Report</a></li>
                            <li><a href="#" class="search">Search</a></li>
                        </ul>
                    </li>
                    <li><h3><a href="#" class="folder_table">Orders</a></h3>
          				<ul>
                        	<li><a href="#" class="addorder">New order</a></li>
                          <li><a href="#" class="shipping">Shipments</a></li>
                            <li><a href="#" class="invoices">Invoices</a></li>
                        </ul>
                    </li>
                    <li><h3><a href="#" class="manage">Manage</a></h3>
          				<ul>
                            <li><a href="#" class="manage_page">Pages</a></li>
                            <li><a href="#" class="cart">Products</a></li>
                            <li><a href="#" class="folder">Product categories</a></li>
            				<li><a href="#" class="promotions">Promotions</a></li>
                        </ul>
                    </li>
                  <li><h3><a href="#" class="user">Users</a></h3>
          				<ul>
                            <li><a href="#" class="useradd">Add user</a></li>
                            <li><a href="#" class="group">User groups</a></li>
            				<li><a href="#" class="search">Find user</a></li>
                            <li><a href="#" class="online">Users online</a></li>
                        </ul>
                    </li>
				</ul>       
          </div>
		  -->
      </div>
        <div id="footer">
        <div id="credits">
   		Template by <a href="http://www.bloganje.com">Bloganje</a>
        </div>
        <div id="styleswitcher">
            <ul>
                <li><a href="javascript: document.cookie='theme='; window.location.reload();" title="Default" id="defswitch">d</a></li>
                <li><a href="javascript: document.cookie='theme=1'; window.location.reload();" title="Blue" id="blueswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=2'; window.location.reload();" title="Green" id="greenswitch">g</a></li>
                <li><a href="javascript: document.cookie='theme=3'; window.location.reload();" title="Brown" id="brownswitch">b</a></li>
                <li><a href="javascript: document.cookie='theme=4'; window.location.reload();" title="Mix" id="mixswitch">m</a></li>
            </ul>
        </div><br />

        </div>
</div>
</body>
</html>
